import "./globals.css";
import { AntdRegistry } from '@ant-design/nextjs-registry';
import LocaleProvider from '@/components/LocaleProvider'
// import { ConfigProvider } from 'antd';
// import zhCN from 'antd/locale/zh_CN'
// import dayjs from 'dayjs';
// import 'dayjs/locale/zh-cn';

// 设置 dayjs 的默认语言为中文
// dayjs.locale('zh-cn');

export const metadata = {
  title: "智慧社区管理后台",
  description: "智慧社区后台管理系统",
};

export default function RootLayout({ children }) {
  return (
    <html lang="zh">
      <body>
        {/* <ConfigProvider locale={zhCN}> */}
        <LocaleProvider>
          <AntdRegistry>{children}</AntdRegistry>
        </LocaleProvider>
        {/* </ConfigProvider> */}
      </body>
    </html>
  );
}
